<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller{
    public function index(){
        if (session('studentid')){
            Header("HTTP/1.1 301 Moved Permanently");
            Header("Location: ".U('Home/Student/Index'));
        }else{
            Header("HTTP/1.1 301 Moved Permanently");
            Header("Location: ".U('Home/Register/Login'));
        }
    }
}